text layout: Avoid redundant text attributes
authorMatthias Clasen <mclasen@redhat.com>
Wed, 24 Jul 2019 23:03:07 +0000 (19:03 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 24 Jul 2019 23:05:32 +0000 (19:05 -0400)
commit552fe0406cb68244b086a5119cd2ea4e5e071f78
tree5b312e7b6386aeee7e46960f476956f662772ab5
parent0d95c5dfe283aad55a8475aedc7eb126b35597b5
text layout: Avoid redundant text attributes

Don't insert text attributes if the font, or scale
or fallback did not actually change. This helps
Pango avoid excessive item breaks, which in turn
helps shaping to work across things like color
changes.

Related: https://gitlab.gnome.org/GNOME/pango/issues/28
gtk/gtktextlayout.c